﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>登录</title>
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#btn').click(function () {
                $.ajax({
                    url: "@Url.Action("list","MyLogin",new { area="Login"})",
                    type: "post",
                    data: { "name": $('#name').val(), "pwd": $('#pwd').val() },
                    success:function (data)
                    {
                        window.location = data;
                    },
                    error: function () {
                        alert("失败");
                    }
                })
            });
        });
    </script>
</head>

<body>
    <div>
        登录名：<input type="text" id="name"><br />
        密  码：<input type="password" id="pwd" /><br />
        <input type="button" id="btn" value="登录" />
    </div>
</body>
</html>

